<template>
  <view>
    <img :src="imgurl" alt="" />
  </view>
</template>

<script>
import { initParamsEvent } from "../../common/js/util";

export default {
  data() {
    return {
      imgurl: "",
    };
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      initParamsEvent(({ imgurl }) => {
        this.imgurl = imgurl;
      }, "pdfimg");
	  
      uni.$emit("generateImg", "pdfimg");
    },
  },
};
</script>

<style scoped>
img {
  width: 100%;
  height: 100vh;
}
</style>